package com.blb.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author xray
 * @since 2023-08-08
 */
@TableName("course_orientation")
public class CourseOrientation implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String orientationName;

    private Integer parentId;

    /**
     * 父方向
     */
    /**
     * 课程类型
     */
    @TableField(exist = false)
    private CourseOrientation parent;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrientationName() {
        return orientationName;
    }

    public void setOrientationName(String orientationName) {
        this.orientationName = orientationName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public CourseOrientation getParent() {
        return parent;
    }

    public void setParent(CourseOrientation parent) {
        this.parent = parent;
    }

    @Override
    public String toString() {
        return "CourseOrientation{" +
            "id = " + id +
            ", orientationName = " + orientationName +
            ", parentId = " + parentId +
        "}";
    }
}
